
    import React  from 'react'
    import { Route } from 'react-router-dom'

    const ConfigRouter = (props)=>{
                //{path: '/Ho', component: ƒ}
                let {component:Com,children = []} = props
        console.log(props);
        return(
           <Route path={props.path} render = {(props)=><Com routes = {children} {...props} />} />
        )
    }

    export default ConfigRouter